package com.idea.www.viewpagedemo;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;

/**
 * Created by Administrator on 2017/5/23.
 */

public class SecondActivity extends Activity {


    private BannerAdapter mAdapter;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);

        final BannerView bannerView = (BannerView) findViewById(R.id.bannerView);
        bannerView.setAdapter(mAdapter = new BannerAdapter(this));
    }
}
